package common.tests 
{
	import common.IApp;
	import common.ITest;
	import common.ITestResult;
	import common.TestResult;
	import common.TestUtil;
	public class AppStartTest extends AbstractAppTest implements ITest
	{

		
		public function AppStartTest(app:IApp)
		{
			super(app);
		}
		
		
		public function run():ITestResult 
		{
			try
			{
				this._app.start();
			}
			catch (e:Error)
			{
				return TestResult.fail(this, TestUtil.formatError(e));
			}
			
			return TestResult.success(this);
		}
		
	}

}